﻿@using MvcHtmlHelpers
@using TypeRacer.Models
@using WebUtility
@model IEnumerable<Book>
@{
    ColumnDescriptor colDesc = new ColumnDescriptor();
    colDesc.CreateColumnByType(typeof(Book));
}
@(Html.DataGrid<Book>(Model,colDesc, sortCol: (string)ViewData["CurrSortField"], isAsc: (bool?)ViewData["IsAsc"]))